package com.smart.village.big.screen.domain;

import com.google.common.collect.Lists;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

public class NewsCategory implements Serializable {
    private static final long serialVersionUID = 1L;
    private String newsCategorySerialNumber;
    private String newsCategory;
    private String rowStatus;
    private String parentSerialNumber;
    private String operationID;
    private String operationDatetime;

    private String newsTerminal;
    private String operationId;


    private String createrSerialNumber;

    private LocalDateTime createDatetime;


    List<NewsCategory> children = Lists.newArrayList();

    public NewsCategory() {
    }

    public NewsCategory(String newsCategorySerialNumber, String newsCategory, String rowStatus, String parentSerialNumber, String operationID, String operationDatetime) {
        this.newsCategorySerialNumber = newsCategorySerialNumber;
        this.newsCategory = newsCategory;
        this.rowStatus = rowStatus;
        this.parentSerialNumber = parentSerialNumber;
        this.operationID = operationID;
        this.operationDatetime = operationDatetime;
    }
    public void addChild(NewsCategory child) {
        this.children.add(child);
    }
    public List<NewsCategory> getChildren() {
        return children;
    }

    public void setChildren(List<NewsCategory> children) {
        this.children = children;
    }

    public String getNewsCategorySerialNumber() {
        return newsCategorySerialNumber;
    }

    public void setNewsCategorySerialNumber(String newsCategorySerialNumber) {
        this.newsCategorySerialNumber = newsCategorySerialNumber;
    }

    public String getNewsTerminal() {
        return newsTerminal;
    }

    public void setNewsTerminal(String newsTerminal) {
        this.newsTerminal = newsTerminal;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getCreaterSerialNumber() {
        return createrSerialNumber;
    }

    public void setCreaterSerialNumber(String createrSerialNumber) {
        this.createrSerialNumber = createrSerialNumber;
    }

    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }

    public String getNewsCategory() {
        return newsCategory;
    }

    public void setNewsCategory(String newsCategory) {
        this.newsCategory = newsCategory;
    }

    public String getRowStatus() {
        return rowStatus;
    }

    public void setRowStatus(String rowStatus) {
        this.rowStatus = rowStatus;
    }

    public String getParentSerialNumber() {
        return parentSerialNumber;
    }

    public void setParentSerialNumber(String parentSerialNumber) {
        this.parentSerialNumber = parentSerialNumber;
    }

    public String getOperationID() {
        return operationID;
    }

    public void setOperationID(String operationID) {
        this.operationID = operationID;
    }

    public String getOperationDatetime() {
        return operationDatetime;
    }

    public void setOperationDatetime(String operationDatetime) {
        this.operationDatetime = operationDatetime;
    }

    @Override
    public String toString() {
        return "NewsCategory{" +
                "newsCategorySerialNumber='" + newsCategorySerialNumber + '\'' +
                ", newsCategory='" + newsCategory + '\'' +
                ", rowStatus='" + rowStatus + '\'' +
                ", parentSerialNumber='" + parentSerialNumber + '\'' +
                ", operationID='" + operationID + '\'' +
                ", operationDatetime='" + operationDatetime + '\'' +
                '}';
    }
}
